Well for me, I said thank you (indicating dismissal), he didn't move, so I did a pointed "Thank you very much!" with a big smile, then made a point of turning away and washing my hands. When I was done, he was still just stood in the doorway watching.
At this stage I became totally uncomfortable with the whole thing, said, "Thanks!" again and turned around. At a loss, I looked at the towels for a few moments and surveyed the shower stall.
Turning around, he was still there looking at me, so I just walked over and smilingly shut the door in his face. It wasn't great. It's not in my nature to shut the door on someone standing right there looking right at you.
Someone will no doubt make a point about etiquette in the Middle East and how I have made a faux pas, but I truly found it really uncomfortable. I'm happy to hear if I have made an error here of course, but that is how it was for me and how I felt.