Message resend counter implemented

Slack messages are now resent up to 5 times if they fail to send due to
an exception.

I hope this doesnt go infinte loop on our asses one day.