def close_tab(self):
        """Close virtual tab if it is open"""
        if self.tab is not None and not self.tab._closing:
            self.tab.close()
            self.socket.factory[self.socket].tab = None
Close virtual tab if it is open
slyd/slyd/splash/commands.py