Add a timed_wait_and_kill() that will: wait || SIGTERM || (SIGKILL && wait)
kill_and_wait(): If timed_wait() returns 0 no need to pwait as nothing is running.
log_stop(): Give tee(1) a moment to flush buffers before killing it.

This hopefully will fix some data being lost in logs near the end of
them. The kill can occur while data is still being read/written.
timed_wait(): Optimize by using timeout(1), reducing execs and sleeps
Lower the ABI check sleep