Shutdown cleanly when the driver is stopped.

that assumes that every halting state goes through stateStop. That's a reasonable assumption but can easily be broken accidentally. Having the close here retains the contract that the channels will close when the driver is done.