raise RuntimeError instead of quitting