commit changes before killing it