Resend failed msg polish

We should not display the resend button for failed commands or if we are disconnected.

Fix #1159