 Reportedly, a number of alternate endings were written and filmed  before settling on the one in the released version. One of the  unused endings was to leave the viewer not entirely sure that what  theyd seen was reality or yet another fantasy sequence.