ENH: do not pollute with WTF upon each error, fix check for badexternals run