spec: catch errors in the screenshoter