Added logging when failing to create commit file.