tcp_connector: Implement reconnecting