Cleanup pidfile-gerneration