test_flow: fixed hangs when failed urlopen()