the agreement put an end to the hostilities of the smolensk war