handle errors returned by control()
check if device is online