Hi intripoon,
Please check out VDDK docs Updating Applications for Advanced Transport. There point six reads as follows:
6 Find VixDiskLib_Disconnect() near the end of program, and for safety add a VixDiskLib_Cleanup() call immediately afterwards
Think this is what you are looking for.
--
Thomas G.