Missing close file after used

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>