SOLR-7601: We should only check that tests have properly closed resources if the tests passed. Speeds up test fails and cleans up Jenkin's failure reports.