Don't forget that Thanos was taken completely unawares and attacked by an elite high herald tapping into the most powerful of the Infinity Gems.
Once he had Thor at his mercy, he could have done whatever he wanted to do with him. But instead he shipped him off to Asgard where he could be cured of his madness by his father.
That was a win for Thanos no matter how you look at it.