Make log to be manual terminate.
Use C99 single line comment instead multi-line comment.
Remove unused variable.
Terminate logging system.