Kodi restarts after connecting to wifi