Using traceback.print_exc so errors aren't printed twice.