```Python
except Exception as e:
    logger.error("Failed to change umask: {0}".format(e))
```