cancel request when connection is broken

[finishes #56561832]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Auto-merge remote-tracking branch 'upstream/master'