Add catch for OSError exception.
Merge pull request #24 from Aplopio/fix/posthandler-queue

Add catch for OSError exception