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

Fixes #42: Memory leak on JRuby.