around advice added for catching exceptions in functions that executes
takeScreenshot or takeScreenshotOfElement