- Adding close function to close the browser