Will call 'leave room' api if stream is closed.