added logging of the accelerometer exception.