flush the send queue before disconnects