attempt to rename PID file when possible