def METHOD_NAME(self):
    if constants.APP_SERVER_IN_CLOUD:
        # Close all the ports open for the App within the App.
        ports = [self.port] + getattr(self.backend, "ports", [])
        for port in ports:
            disable_port(port)
    super().METHOD_NAME()