Available in the LEADTOOLS Imaging toolkit.
EndSession Example for Visual Basic
Dim RasterTwain As New LEADRasterTwain_U RasterTwain.InitSession hWnd RasterTwain.SelectSource RasterTwain.Acquire L_LTWAIN_SHOW_USER_INTERFACE RasterTwain.EndSession