To be fair, she'd been back on the ground, had the multitool back in her belt and was halfway around the ship. Han wasn't always a quick study at things right in front of his face. See also, her mother.
For crying out loud, her mother.
It had to be instinct. Han wrapped his arms around her shoulders, pulling her into an awkward but what he assumed was fatherly hug.