Merge "minui: Save errno before calling close()." am: df464dbe79 am: 8075089ca1
am: 30c164411f

Change-Id: Ifebc398f240364d0afc2d0abd5eba01f07b36d9d