fixed list bug in close syscall.

more tests passing