pub fn take_panic_backtrace() -> Result<String, Error>
Take the backtrace from the task_local variable, and reset the task_local to None. Return error if the backtrace is not stored, or cannot be retrieved.