Fix TCP bugs and also added a global error read and write for the Real time side Event Loop.