Don't create a client if there is a connection error

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #32 from flynn/connection-error-no-client

Don't create a client if there is a connection error