If a guy is at the receiving end of this treatment, how does he deal with it in a graceful manner?
If you are on the receiving end of this treatment, this means you approached without any clear IOIs.
This generally happens around a lot of people where nobody knows anybody.
If you are socially proofed, and you have gotten at least a few IOIs, this won't happen.
This tends to only happen to non socially proofed guys who approach without any IOIs, e.g. cold approach.
If it does happen, just use it as practice to reframe the situation, laugh it off, and move on.