Wrap exception messages in stacktrace buffer.

Addresses #557