Flow-control methods for auto-closing resources.