Fixed missing definition of stop_if_error