Ability to cancel connecting and disconnect, error handling for connection failure.