He was just a bit mad at you for leaving him. Mine do that all the time. I get the cold shoulder even if I am late coming home every night. As mad as they are at me all is forgotten when it is bedtime. 4 cats allow me to sleep in my bed.
My son's cat cries when he leaves for work. It is these long heartbreaking cries then she comes & sleeps on top of my head. I had to hit snooze 3 times this morning until she finally moved.