Ignore errors when failing to close a socket or similar