log the original message and stacktrace if possible