Added an alert dialog when connection to server has failed.