Arranged environment, parameters and session data sent by notifier.
Fixed null pointer exception.
Fixed sending nested exceptions by using "Caused by" markers into a
single error block.