unlock();
} catch (IOException ex) {
throw new DriverException(ex);
} finally {
final SCSIDevice dev = (SCSIDevice) getDevice();
dev.unregisterAPI(RemovableDeviceAPI.class);
dev.unregisterAPI(FSBlockDeviceAPI.class);
dev.unregisterAPI(SCSIDeviceAPI.class);
}
}