 The restored Miss Kizlet contacts her client to report her failure to him . The client is shown to be the Great Intelligence , who orders her to reset all people working there , including herself , clearing their memories in the process . As UNIT storms in to shut them down , the uploaders all lose their memories . Miss Kizlet is reduced to the mentality of a small child . Meanwhile , the Doctor takes Clara home and offers her a chance to travel with him , which she refuses . She tells him to come back the next morning , as she may change her mind by then . 
