Fix #947: exit nice if no permission to write log
Merge pull request #1109 from influxdb/fix-947

Fix #947: exit nice if no permission to write log