Fixed a null termination error I think?
Finally ficzed that random crash on connection reset. It was SIGPIPE all along...