Save commit before something goes wrong