[nim, Felix] updated the screenshot decorator to print exception when it fails to save screenshot.