not reseting the socket on each error