Removing duplicate code.
Binding to signals-api
Fail the connectFuture when an error occurs on the socket. (this is how the underlying library shows failure to connect).