Merge pull request #70 from Sirupsen/failed-hook-errors hooks: lock on the logger before printing to stderr, printf args