adding lock to stop() and setting instance variable when stopped
adding lock to stop() and setting instance variable when stopped

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