Maintainers should understand that saying no and closing an issue is polite. Much better than ignoring, stalling conversations, demanding yak-shaving, bike-shedding or pretending that a feature request could be added if only someone else contributes it, then never accepting the PR once it arrives.

Contributors should understand that receiving a no and having their issue closed is polite.

But closing it immediately is definitely not polite.