Sending SIGTERM and then SIGKILL after a grace period