This usually happens when the window gets unfocused before the screenshot is done. The promise is now handled properly. Unhandled promise errors will now cause a popup. The popup can only appear once now.