Added feature to keep log up after closing the window.