Wrap unregisterReceiver in try/catch
Added developer options to control the motions sensing