pk: Minor startup/shutdown reordering
pk: Minor startup/shutdown reordering

- Create the pidfile as soon as possible after taking the lock

- Shut down the logger as late as possible

cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr