update status to take the pid file into account if the API fails