Avoid error dialog popup hanging test execution