AMQP-417 Fix Failing Test

- The executor thread returned its channel to the cache after the
   factory was destroyed.
- Add a `destroyed` boolean to the CCF and don't return channels when destroyed
- Also stop the executor before destroying the CCF (in the test)