Refine the logic when failing to send msg