Fix logger and NPE when closing ApplicGare

+ when logging in for the second time, senders would be reinitialized
+ when quitting the app withour loggin in, senders would be null and
then causing NPE's