'Verify the heartbeat'

def _check(self):

    try:
        self.lock.acquire()
        secsSinceHeartbeat = (time.time() - self.lastHeartbeat)
        if (secsSinceHeartbeat > 10):
            self.agentProcess.stop()
            os._exit(0)
    finally:
        self.lock.release()
