Fix inability to shutdown gracefully due to an unending channel reference.