Since you linked to one of the questions I closed, I'll add my 2 cents. Yes there needs to be more communication between people on SO closing/migrating questions and mods/users on Programmers.
I can understand how it happens. A question is posted on SO that clearly doesn't belong there, someone votes to migrate it to Programmers thinking it's not about code so it should live here, not really know if it meets Programmers guidelines. It actually happens a lot.
I do know that in recent weeks that some of the mods on SO have started asking here on Meta whether a question should be migrated to Programmers or just closed on SO. This goes a long way to help the situation.
What it doesn't fix is the situation where 5 SO users vote to migrate a question here. They may or may not know whether it's a good question to migrate and they may or may not care (as long as it's gone from SO). I don't know how that gets fixed.
Here's some other discussions about the same topic:
Do moderators want to be notified when Stack Overflow questions get migrated?
Please stop using Programmers.SE as your toilet bowl