'Terminate connection.'

@fczm_utils.remove_fc_zone
@pure_driver_debug_trace
def terminate_connection(self, volume, connector, **kwargs):

    current_array = self._get_current_array()
    no_more_connections = self._disconnect(current_array, volume, connector, **kwargs)
    properties = {'driver_volume_type': 'fibre_channel', 'data': {}}
    if no_more_connections:
        target_wwns = self._get_array_wwns(current_array)
        init_targ_map = self._build_initiator_target_map(target_wwns, connector)
        properties['data'] = {'target_wwn': target_wwns, 'initiator_target_map': init_targ_map}
    return properties
