Add caught exception to the logs

This should help later to determine the cause of the exception
Merge pull request #1 from ox-it/logs

WL-2653 Add caught exception to the logs