Updated logger
fixed exit logging