waitForFinalEvent