Stop the capture test when closing the options menu