Merge pull request #1 from kulikov/master

= Use getFormattedMessage insted of getMessage; code style fixes
Update README.md
= handle tcp errors
 = retry write command on error
Merge pull request #2 from kulikov/feature-handle-tcp-errors

= improve availability: correct handling TCP errors