Commit before running out of battery