tcp disconnect, minor fixes