Fix crashes when BLE rendezvous disconnects unexpectedly (#4413)
Fix crashes when BLE rendezvous disconnects unexpectedly (#4413)

* Fix crashes when BLE rendezvous disconnects unexpectedly

In BLE::OnBleEndPointConnectionClosed, the endpoint is already closed.
We try to close it again in the Transport::BLE destructor, causing a
crash.  Clear the endpoint in OnBleEndPointConnectionClosed to avoid
this case.

In addition, the OnRendezvousError callback ends up calling
RendezvousCleanup, which destroys the transport. We therefore cannot
call OnRendezvousConnectionClosed  after OnRendezvousError; |this| was
already freed in OnRendezvousError and we just need to return.

* Restyled by clang-format

Co-authored-by: Restyled.io <eb8d3fd3977bb570908ffc25e24391520747defb@restyled.io>
nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip