Fix a bug where the chat listener would spawn the wrong listener on error.