handle exceptions in gesture detector & turn event debug on

This patch does NOT fix the "set up tap timer" bug. It just ignores gestures that have triggered exception.