fixed getting cause from exceptions
Merge pull request #104 from karolsojko/fixed_exception_cause

fixed getting cause from exceptions