removed two unnecessary console.logs and replaced valid one with
the new centralized topic-based error handler.