I think it's at that point that he realises none of what he's experiencing is real because the whole situation doesn't make sense. Mainly to do with the case and also how his team and everyone around him is acting, by letting him do what he wants given his current condition.
(I only just rewatched the ending and not the whole episode so I may be off)