MMA8452: added error handling