You did do the right thing.
If he is PTS, atleast he is passing without any pain such as being hit by a car or even worse.
He's being put out of his misery the best way possible... and I bet you he'll be thanking you when he sees you again.

{{HUGS}}