perf ui tui: Register the error callbacks before initializing the widgets