Serialize traceback first, can't be pickled