Improved next handling in async loop