Fix timeout logic a bit [refs #82401974]

Before, we'd use setInterval(). That's a problem when the system gets
bogged down. setTimeout() will fail more gracefully: it'll do less.