Database and log files deleted on close

Problems with deleting MIP files.