exit before pinf and cp