Log exceptions when they are produced
Merge pull request #430 from dlsniper/prevent-exception

Log exceptions when they are produced for creating directories