Added a method to unregister channels