Later on, as all the students bid each other farewell and goodbye, Hermione returned to her office. She had claimed to need a moment to herself and, after some words with McGonagall, she was allowed to go. 