Close transport before throwing