handle errors from pidfile read