When my battery reaches 0% the Mac suddenly goes off, and it takes a long push of the power on button to get it to start again, in which case it acts as if had been shut down abnormally. Before I used to get warnings before the battery ran down, and it would go to sleep rather than switch off abruptly. Is there any setting I can change?