For verify and enroll, add a done argument so that front-end know easily when they should be closing the device.