Save after mysql database crash, prevent any side-kicks to the code.