I think the catch is wrong, it should just be `exit:badarg`.