Track operations per-thread to assist when unexpected exceptions occur