Add method for close current window on end of test