Check if transport has closed

Sometimes the transport has already closed due to network issues