wait for pool after SIGINT, SIGTERM, SIGQUIT