nullify p->alarm after using it