use error_handler from Service class (fixes #170)