Add missing fclose() and open with O_CLOEXEC.

Bug: 183061763
Test: N/A
Change-Id: Ic353d38d44010207198b56196e98da418330baa4
1 file changed