Fix memory leak: destroy channel layer when closing.