Logging close() in case close() fails.