fix random KeyErrors. probably a race condition. gorakhargosh/watchdog#117