Added functionality to leave a channel