I believe the pop is the result of the HU turning off while the amp is still powered. The factory HU turns off the amp before it powers down. As far as I know, aftermarket HU's will not have the capability to turn off the factory amp beforehand, so you'll just have to live with it or replace the rest of the system.

I don't know this for a fact, but I have read about it before.