added persistent scripts and OnPlayerLeave is now called for every player when the game ends/server closes.