Replacing custom pidfile cleanup with at_exit block

and removing the in-process test.  Best effort is best effort.