log at error level for final error and warn level when attempts remain
Merge branch 'optimize' into message-state
Merge pull request #45 from daptiv/message-state

Message state