Added rule to take screenshot for testNG failure methods.