add 172.20.36.123 exception and add socket.shutdown(how) before
socket.close()