Allow the metrics worker thread to shut down so it won't remain live in hot deploy scenarios.

Fixes #58: Memory leak on JRuby.