2160, 2187, 2190 - Added negotiation cancelling when connection stops while negotiate request is in flight

This pull request fixes #2187, #2190 and #2160.