When the WIA session handle is no longer needed, free the handle by calling LWia::EndSession. At this point the WIA session handle becomes invalid. Before acquiring any more images from a WIA source, establish a new WIA session handle by calling LWia::InitSession.