make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov svn:r1062