Abstracting pattern in ChatManager

Starting transition to error codes rather than just a success flag