Fix stuff when closing app + open log

the button now do something.
I'm not breaking my current logger which works fine for something
broken. Even for the teacher :/