Logout user when network request fails due to connectivity issues and
display alert dialog.