Represents a resource or entity that can be closed to release any associated resources.
Executes the given action block on this Closeable resource and ensures that the resource is closed after the block execution, whether it completes normally or with an exception.