do not use - in a PID!
sleep to flush final log messages