Try catch in Device.init