Resolve/Reject the client promise when the connection is made.
Merge pull request #9 from remind101/reject-on-cant-connect

Resolve/Reject the client promise when the connection is made.