Fix broken quit method for selenium web driver