Better error handling and internet connection prediction.
Added translation for portuguese (Brazil).