Clean up sys.exc_info behavior