Updated LOG open and close

Signed-off-by: Shahbaz <ShabbyX@gmail.com>