Fix premature end of scan
Summary
This MR attempts to fix the premature ending of scan. The suspected reason is that complete is called too early, with the kickoff call still being in progress which leads to an immediate completion of the scan. The additional stubs.wait(...)
should be able to address this.
Issues
relates to #2 (closed)
Edited by appel_c