Gestures handling improved - added Exception handling.