Fix termination of application
Fix termination of application

The app wouldn't terminate even after the main method was terminated. That was because there remained some unterminated worker threads that had been created unnecessarily.

timtroendle/energy-agents