Find last line of indent block that open was, and close the log file