Moved the execution of the callback passed to worker#graceful to be just
before process.exit is called, thus waiting for all execution to stop