handle sigpipe, which trapped by tcpconn.write