Exit the process if game is stuck in EOF loop when the main window is closing
Move sound init/deinit code into seperate functions
Quit the sound engine before killing the process
Cosmetics