new dynamic default pidfile
a few changes to the killing code based on suggestions from @fmoo