Wrap an ExtractableManagedResource[T]
into a new class providing the capability to map errors using an
function specified by excMapper
Close a resource after using it, regardless of whether an exception was thrown or not
Close a resource if an exception was thrown