fix send msg can't stop when send error