Fixed OnUnload crashing the player