try flush msg after submit fail and queue msg.