Adding some checks, and gitignoring the resulting log files when things break