Update ConnectionCheckingService.java

To include try catch for non availablity