make possible to close chronicle and delete file