if batchee is imported in a webapp (=not provided in the container) shutting down the thread pool correctly to avoid leaks