Added a close action to the selenium wrapper and updated the test to use it on teardown