Small enhancement to aid with debugging.

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