I had something similar in my C5 - it would thump every time I turned it off. It ended up being a ground loop. Can't remember whether it was because the amp input ground was connected to the head unit or not connected, but a ground loop isolator fixed it so that might be worth a try