Return the Error logged from LogException()

When logging, return the error so things like the guid can be used.
Addresses Issue #28