added a try catch block to catch any exceptions that are thrown e.g. if the     connection is refused.
added a try catch block to catch any exceptions that are thrown e.g. if the
    connection is refused.

WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL