Replace halt with stop after core refactor