Arcyd: refactor, extract phlsys_signal.set_exit_...

Extract the code to handle SIGTERM and do exit() to it's own module so
it's easier to re-use.

Test Plan:
$ ./precommit.sh