Reconnect on QUIT.
Try to reconnect on socket IOException.