Close transport when recovering from a network failure

References #115