XD-1642 Address review comments

- Add `javadoc` for the exception classes
- Update `log` to `logger`
- Remove print stacktrace on socket close