streamDestroyed and sessionDisconnected event listener fix