WORKER_THREAD_RETURNED_AT_BAD_IRQL Bug Check in Afd.sys..

Hi,
I am working on a Tdi Filter Driver.The driver works fine but sometimes while booting of the system it gets IRP_MJ_CLOSE from AFD.sys , It calls IoCallDriver as Usuall but the system generates a bug check WORKER_THREAD_RETURNED_AT_BAD_IRQL 0x000000E1 ?
Could Any one tell me why this bug check occures and how can i get the rid of this bug check ?The code works fine most of the times but this bug check occures some times only when the system is just booted up (before login screen) and my filter driver has got an IRP_MJ_CLOSE from AFD.SYS.

Any Help is appreciated…
Regards…
Subodh