HPCC-8570 Moved location of rm of pid file in killed

Rm of pid file was happened at latest point when good instead
of earliest point when possibly no good in killed()

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>