Because it returns a future. In the onConnect method of the handler we  
need to be notified somehow that the handshake is done.