handle pre-registered signal handlers
In the PR, we cache any pre-registered signal handlers, and restore it once we are done with realm backtrace.
In the PR, we cache any pre-registered signal handlers, and restore it once we are done with realm backtrace.