Creates an exception, then logs error to NewFile.txt