dapl: move close device after async thread is done using it