Fixed player exiting on close