Create logClose.c