Log exceptions when they are produced for creating directories