handle remove device exceptions