Improved logging, added reply on tcp connect.