In the short "Cranberry War" of 1788 -1789 with Sweden Kaas took command of the sea defences of the naval base at Copenhagen but left after a short period to his final posting as head of the Customs Service.&lt;br&gt;