yes, it is guaranteed that `.close()` will be called on all `AutoCloseable` resources allocated in the `try (...)`-with-resources block. I think we're safe here.