Handle an error if nc fails