Handle cancelling in remote terminal connect window.