Implementing a CaptureException extension methods to make SessionBase aware of exceptions