remove unneccesary global var

make 'running' into loval var
[record] output 1 record line just after SIGINT sent to capture execution time more accurately
[stat] pass through SIGINT to child process