allow the transport to be closed before we try and send remove commands to it without generating an exception