Added automatic disconnect from WiFi and fixed Another process already running eror