add job-id parameter

to be used as an identifier for the running job
fixed signal handling in live capture mode

+use ppoll instead of poll
+use atomic var for dump and run