Have you got and dll's running? such as rebar.dll for docking or similar ones?
If you have, then you need to make sure they get unloaded if mIRC exits