When using the LocalCluster in test setup. LocalCluster#shutdown() does not shutdown all executor services it starts. In my test case, there is a single thread pool executor service that is not shutdown and not daemon. This keeps the jvm alive when it is expected to terminate.
Please see attached test case. In my example, thread pool 47 is not shutdown. Naming here is conditional on threading.