Fix buffered handler

No one was calling bufferedHandler.run, causing no log output and eventually
deadlock.
Merge pull request #1 from edsrzf/fix-buffered-handler

Fix buffered handler