Fixed a Linux platform bug that caused a crash on exiting a game, cleanup added for when the window is closed through the window manager (e.g. X button on the title bar)
Fixed a Linux platform bug that caused a crash on exiting a game, cleanup added for when the window is closed through the window manager (e.g. X button on the title bar)

reven86/GamePlay,reven86/GamePlay,reven86/GamePlay,reven86/GamePlay,reven86/GamePlay