Be more verbose when closing a resource fails