I always wondered that too. He gets quite a few cybernetic implants to replace his lost body parts, so he was near the explosion and yet he wasn't sucked into the vacuum of space. I mean there's no way that missile didn't make a huge -blam!-ing hole in the ship. I'm thinking he got to cover, suffered some non fatal injuries from the explosion, and some droids saved him from dying in the vacuum.