es_write_sanitized() does not stop immediately if one of the underlying es_write() calls fails.
Standard behaviour for stdio functions.