Cleanly close channels when shutting down.
Optimize XKCD command.