A bit off topic, but why can't tabbed browsers detect accidental (double) middle clicks when closing a tab?
Of course, you can always right-click and say 'Close all tabs to the right' but I usually forget about that option at the time when I'm doing it.