It's possible the screenshot hasn't persisted to disk by the time the handler resumes execution, so we need to wait until it's there.