Good idea.
Although maybe the system should keep track of the number of times you've accidentally declared war. I mean, once or twice every so often is bad luck. But if your race gets a habit for committing an act that as basically a declaration of war, then next turn going "Oops! Soz! My Bad!", your diplomacy standing should take a major hit. And ultimately, once you've declared war against the Drengin for the fourth time, this time there's no accepted surrender.
Even if it's inadvertently moving ships towards a planet that would be seen as an act of war...