Check if transports work

If the transport breaks then raise an exception. Currently the
exception is caught in main and nothing is done. I'm not entirely what
needs to be done.