Logging of failed touch events

I have finally added the changes discussed here:

https://groups.google.com/forum/#!topic/frank-discuss/MFrK4oQUGhs