o Updated to remove an unused field (always null) and to not suppress exceptions silently when closing resources fails.