server: return false when socket closed

`._writeData` should return `false` when socket is not writable anymore.
1.10.12