Bug fix: bootstrap breaks when debug.log() can not write to log file.