gui: stop gui logger when the GUI ends

avoid having exceptions when logging messages during the GUI close up