Revert endMission

I'll use the 1.8 implementation for player_onPause and fix it in few days, not sure if i'm done until the Update released