Avoid leaking command
Cleanly remove channels before shutting down loop.