Fixes #157 Add shutdown hook to the internal ExecutorService