[examples] Enable debugging
[server] Return error value on internal error; provide more details in the log (even more on debug level). Closes #233