'Finalize reading the file.'

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

    if (not self.state.get('success')):
        self.Log('File    transfer    failed.')
    else:
        stat_entry = self.state.stat_entry
        self.Log('File    %s    transferred    successfully.', stat_entry.AFF4Path(self.client_id))
        self.SendReply(stat_entry)
    super(GetFile, self).End()
