Added code to rebind socket after a NetConnected socket error; thanks Rhee