Addresses Serengeti-1748, leaking threads.
This addresses various thread leaks from incorrect usage of the Jsch
library and the RabbitMQ client library.