unlink temp file defore close it

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>