Add ability to cancel connections.