check for exit condition before transport reconnects