Did you also change the CCPMX configuration fuse for RB3/CCP2 alternate?

portc.2 is CCP1, are you saying that that one stopped working ?

And yes, you need to have a mainloop. Otherwise it goes to the END statement and enters Sleep mode. But changing the CCP registers doesn't need to be in the mainloop.
<br>