[dynamo] try-with-resource