Pass stopOnError option into private function.