Relase managed streams when RTC instance is closed
Updated version