Doesnt handle socket close