Added some code in ThreadService to dump ImmutablePatches for display when we hit an exception.