Reconnect on socket closed