Autocloseable seems like a good idea