Let's assume your goal is to conquer a specific province of your AI neighbor so as to exploit its resources. As soon as you conquer it you want to end war because it's not on your interest to conquer the entire country but this sole province.
However, the typical response of the AI player is not only trying to re-capture the province, but conquer your hole country and destroy all your units. It is very annoying becauce except for spending resourses and manpower for an useless war, it affects negatively provinces morale which in advance hurts production.
So, here's my question. Is it possible to avoid this stupid behavior? To put it simple, is there a way to make peace with AI bots after a war declaration?