Merge "minui: Save errno before calling close()."