make sure to close socket on reconnect