Abandon connect loop if something has called Close()
Merge pull request #2 from davegardnerisme/connect-bail

Abandon connect loop if something has called Close()