Make sure Session#close_connection is no-op when transport is not open