Aren't you missing the unloadDll function?