Critical Neural Substrates For Correcting Unexpected Trajectory Errors And Learning From Them