Improve robutness of the server (print exception if the worker fails)

This bug was not present in v2.3, it has been introduced by a recent commit
Make indenter smarter