Unify socket streams again perfectly

and delete closed client's output socket's writer.