retrace: check error after retrace callback
Otherwise it will pop up much later (like in StateTrack::useProgram). Also log the name of that callback if there was an error.
Otherwise it will pop up much later (like in StateTrack::useProgram). Also log the name of that callback if there was an error.