Attempt at stopping closing without saving