Destroy the AUI manager earlier in the shutdown sequence.

Prevents the crash on Windows during finishing of some plugin threads.
Surprisingly enough does not cause crash in Dashboard and GE, docked or not.