Cleanup stdout when testng tests fail