[MIN] try/with resource handling