Assuming you're talking about where his wife says ''Alan, wake up'', my interpretation was that he just wrote it so that it was all a dream. Like, the nightmare or whatever that he was having at the beginning was just that, a nightmare and nothing more.