fix close bug

close() closes browser. This should be self.close();