added sys_close