remote_wait_for_cancel: avoid unnecessary warning

If the remote server cannot be connected and query is canceled,
don't show random warning about "Unfinished connection".

Patch by Fazal Majid