<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close(self):
 """ If a browser was created close it first. """

        if hasattr(self, "_browser"):
            self.loop.run_until_complete(self._browser.close())
        super().close()