Added error logging

Every error will be send to my site (view http://goo.gl/GfVP7T)