send SIGQUIT/SIGTERM only once to the workers

there is no need to send more than once the signal to the workers when
exiting. With this patch we are sending once the QUIT/TERM signal and  then
wait until the graceful timeout or until there are workers alive.

fix #655