Better debugging for socket close errors
Added set_nodelay(True)