Try using halt instead of haltdef.