Only take a screenshot if it failed