make sure pidfile operations log errors