Separating error and stop callbacks.