Shuts down threads correctly, still report errors.