'Finish up and write the results.'

@flow.StateHandler()
def End(self, unused_responses):

    client = aff4.FACTORY.Open(self.client_id, mode='rw', token=self.token)
    client.Set(client.Schema.KNOWLEDGE_BASE, self.state.knowledge_base)
    self.CopyUserNamesFromKnowledgeBase(client)
    self.CopyOSReleaseFromKnowledgeBase(client)
    client.Flush()
    self.SendReply(self.state.knowledge_base)
