ISPN-2962 Fix thread leaks in the core test suite

Several tests do not shutdown their Executors or fail to stop an AsyncStore leading to stray threads after the suite is run.