Use ExecutorService.shutDown() instead of shutDownNow() which may cause problems to close the bdb database