Handle server disconnect, netcode fixes