Add newline in logger
Implement Close
Update example