socket: make sure we don't get SIGPIPE.
write-commands: automatically split OP_INSERT when over batch or max size.