These things happen and it irks me when people (read bosses) decide they can unnecessarily berate you. I am an adult who has completed her task and I do what I ought to do as regards work so what exactly is your problem with me? Not like there was an active conversation going. Sorry you had this type of encounter, must have disrupted your day a bit.