This function terminates the association between the device handle passed in argument h and the device it represents. If the device is presently active, a call to sane_cancel() is performed first. After this function returns, handle h must not be used anymore.
void sane_close (SANE_Handle h);