close half-close socket when sendding buffer done && memory leak in forward_message