Kill the connection if the user breaks out of the modal.