Take a screenshot when a test fails.