protected override bool ReleaseHandle() { // This is a hack to free all references of the DLL while (NativeMethods.FreeLibrary(handle)) ; return true; }