What would cause the ignition to stick in accessory mode until a clicking sound is heard when turning the engine off on a 2000 Pontiac Grand Prix?

I had the exact same problem with my 2000 grand prix gt, you need to replace the gear box assembly.