cleanup pidfile while exiting