Changing of selenium close method to avoid memory leaks of firefox