sclang: hidapi - clean up device closing