autoclosable resources