Comments changed and better error handling.

- Comments changed to have a better wording.
- Implement  better error handling mechanism. Now CtctException is thrown even if the call to an endpoint is not successful.