add close() on socket

add close() on socket, this may cause "Too many open files" on PyPy kind of GC.