Reset LastError when we're doing "named pipe discovery"