when closing, remove commands from the right queues as we iterate over them, rather than the next queue.
when closing, remove commands from the right queues as we iterate over
them, rather than the next queue.

ok deraadt@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars