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

guidow/pyfarm-agent,guidow/pyfarm-agent,pyfarm/pyfarm-agent,pyfarm/pyfarm-agent,pyfarm/pyfarm-agent,guidow/pyfarm-agent