Selenium, make sure async reserve is finished before database is truncated