I have used following to turn off HPWM.
Code:
<body><!--StartFragment--><pre><code><font color="#000000">    CCP1CON = %00000000
    T2CON.2 = 0
</code>
Don't know if that is right way to do it, but it is working
It would be nice to hear if there is some better way to do that.

BR,
-Gusse-