Destroy the AUI manager earlier in the shutdown sequence. Prevents the crash on Windows during finishing of some plugin threads.
Merge pull request #160 from nohal/master

Destroy the AUI manager earlier in the shutdown sequence.