Implement --grace-time parameter

In order to kill more softly and avoid errors on sensitive children,
implement kill with SIGTERM --grace-time before --timeout.