Nope not sure. Take a look at the stack trace to see where the code is coming from and exactly where the failure occurs. Quit() doesn't call any methods that DECLARE dlls that haven't been declared a lot earlier in the process, so that makes me think that something is getting unloaded.