Kodi not restarting properly