check that the save operation succeeded before cleaning old scans
Style fixes