Use adapter for handling exceptions from output.
Merge pull request #154 from Dmitry-Me/adapterToAdaptExceptionHandlig

Use adapter for handling exceptions from output.