shutdown the db after the jobs were completed not before
don't wait so long for pool termination (something goes wrong here)