add close after unlink