Limit retries of sending messages on soft failure to 10 retries

We shouldn't just keep retrying to send a message. After 10 soft fails, we should just give up and log an error.