CurieIMU gets stuck in interrupt

I am entry level into the world of programming. I have experience in AV control systems but this is my first Arduino project. I have an Arduino 101 and am using the Curie module for both BLE and IMU. I am only looking at the X axis to determine vehicle motion. If I move the board around too much, the program gets stuck in the interrupt and will not leave. What am i doing wrong? Is there an issue with using both BLE and IMU at the same time? It doesn't seem like I'm asking too much from the board.

I have a lot of little things in code that I have been using to help troubleshoot the issue.

Any input would be appreciated.

Trailer_Control_R1.5.ino (9.51 KB)

Any insight at all would be helpful.