You get this message because you have avast set to check your CD-ROM drive upon logout.
You could set avast to NOT check cds upon logout, or, you could check to be sure 'autorun' or 'autoplay' (whichever it is) is turned on in Windows. It could be that Windows doesn't know that you ejected the cd, and this is why I suggested the 'autorun' setting.