Don't log short lived processes
Don't TRAP
Also log cmdline
Run through on_exit, improve reliability