Prevent leaks on multiple SetErrorMessage