Is the hug a greeting or do you hang on, implying a form of ownership that he may find uncomfortable?
Think what it would mean if you did that to him. Right. It means he doesn't want to hug you or be hugged by you.
He had a moment, but it was insincere.
The fact he said what he did, means there's nothing there for you, best to move on.