catch SIGTERM and SIGINT, making sure processes exit upon exiting of pingpong; a bug fixes in process callback where printing status would give wrong cmd number