Added safe/exit handlers for LevelEditor