Test for error before using the backtrace FD.