Delay exiting on failure to let the logger do its work
Delay exiting on failure to let the logger do its work

`process.exit` is synchronous, while logging is async. This means that we need
to wait until the logger has logged a failure before exiting. Currently, the
logger does not support waiting for completion, so we use a 1s delay as a
work-around.

gwicke/service-runner,Pchelolo/service-runner,wikimedia/service-runner,d00rman/service-runner,nyurik/service-runner