Fix socket close after work

example of problem:

ulimit -n 10

run file https://gist.github.com/qsimpleq/9705093