Improved a stability

* Add error handlers for server
* Fix logging for indexer