Set the window name based on the scene, and make scene changing functions more threadsafe
Close all sockets when server exits