socket connect change

- move call to socket.Connect to after registering on connect even
handler