This should be a ValueError or a RuntimeError, not a pseudo error and an exit.