add while loop to helpers._wait() so it won't exit after first interval

_wait() should have a loop around the try block, same as wait()