After cutting off the shims, apply caulking to the ends of the shims before installing interior trim.
Weatherproof the exterior perimeter by applying a weatherproof caulking in a continuous bead along the seam where the frame meets the exterior wall finish.