Fixing  app close by UI
WIP - Fix reconnect problem with threads
WIP - FIxing start problem