Fix command line arg parsing
Fix stop signal cleanup
Generate a timestamp once per iteration