Perhaps something like this add in script?:
DeDuplicateTabs: Auto-close duplicate tabs when new windows open
I'm not certain if that would trigger if the duplicate tab is the result of changing directories, but it could probably be modified to watch an additional event handler if not.