Small enhancement to aid with debugging.

Wrapped the exception to retain the stack trace when a command or event message dispatch fails.