Capture unhandle exceptions
Improving stack trace in the case of unexpected exception.
Merge branch 'develop' into issue/1758