accelerometer destroy function