un hooking the battery will reset the pcm clearing all codes. what i would do is when it acts up again, scan it running for codes, you might be getting a pending code of some sort thats not fully turning on the cel.

dont turn it off before scanning, that will clear the pending code. so scan it running still for codes.