I know this isn't your code, but this shouldn't swallow all errors.  If there is a specific problem with the unit, it should only catch that error.