At that moment, for all that Philip knew, he might have been on his way to being killed, given Elizabeth's assessment of the mission. He might have genuinely hugged Stan thinking that this might be the last time he sees his friend.
Even if it's not a literally goodbye, it could be seen as symbolizing a farewell to their friendship. Nothing will be the same from now on.
Re: Philip dying
Even if it's not a literally goodbye, it could be seen as symbolizing a farewell to their friendship. Nothing will be the same from now on.