Revert "Revert "Added code to detect loss of data connection.""

This reverts commit 6042c46069c96b3c2ad955958e5633d340332099.
Renamed retry button to close in no data connection dialog.