clean up correctly when leaving level player