When killing the process while the database was writing a checkpoint or while it was closing, the database could become corrupt. (improved tests)