add try/catch for accelerometer failure