def close_tab(data, socket):
 if (socket.tab is not None):
  socket.tab.close()
  socket.factory[socket].tab = None

def close_tab ( data , socket ) : if ( socket . tab is not None ) : socket . tab . close ( ) socket . factory [ socket ] . tab = None
close virtual tab if it is open .