fix backtrace cleanup