def main(self):
        if not self.nested_command:
            try:
                self.setup()
                # Give some time for the topology to start.
                time.sleep(10)
                self._run()
            finally:
                self.teardown()