added concurrency utilities to deregister devices