Exit the loop once the command exits.

This matters if there are multiple channels active at once.