Committing changes before the mac dies