navigator.notification.alert("Server did not properly acknowledge logout. You might have problems for the next few hours if you switch accounts.",null,"Error",'Dismiss');
}
}).fail(function(){
logoutInProgress=false;
navigator.notification.alert("Cannot connect to server. Check your Internet connection and try again. If that fails, clear the app data or reinstall TerranQuest.",null,"Error",'Dismiss');