add log and catch exception
Merge branch 'master' of https://github.com/MaskRay/YahooHackDay2013