Refactor out functionality from connect to connectHelper.
In send, if the connection is not alive, use connectHelper to try to reconnect.