Commit all data so it doesn't get lost