Merge "cleanup resource in setUpClass if ecxeption raised"