Error manager of pid file quit without updating file