public void onUncaughtException(Throwable cause) {
super.onUncaughtException(cause);
// Grab a "failure" screenshot and store in the errors folder for later
// analysis
try {
TestBenchCommands testBench = testBench();
if (testBench != null) {
testBench.disableWaitForVaadin();
}
} catch (Throwable t) {
t.printStackTrace();
}
try {