Use waitUntilObjectNotExists instead. waitForObjectNotExists does not throw error in non-success cases.
Deprecated
Use waitUntilObjectNotExists instead. waitForObjectNotExists does not throw error in non-success cases.