def close(self):
        if not self.step_registry:
            self.discover_step_definitions()

        if self.step_registry:
            # -- ENSURE: Output stream is open.
            self.stream = self.open()
            self.report()

        # -- FINALLY:
        self.close_stream()

    # -- REPORT SPECIFIC-API:
Apply port filter.
dataset/ETHPy150Open behave/behave/behave/formatter/steps.py/AbstractStepsFormatter.close--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/agent/firewall.py/FirewallDriver.apply_port_filter