take a screenshot when tests throw an exception