Cleanup of errors.