Add sigterm handler to shutdown from rc.d scripts

rc.d scripts shut down Mylar daemon with SIGTERM which causes it to close without deleting the PID file (Issue #733). This installs a handler so the mylar daemon shuts down properly and doesn't need a manual deletion of the PID file.