Fixed issue with disconnect and getting remote address on linux.