Ends an asynchronous Connect.