a peer leave the room and what should do for the other peers's transports in the room

In a room on server side, a peer leave the room and the peer’s transports invoke close, then what should do.
I mean what should do for the other peers’s transports which consume the closed peer’s producer or produce producer for the closed peer’s consumer.
mediasoup destroy the invalid producers and consumers automatically or should the programer destory them manually.

Everything is documented: