added error handling logic about the message transmission fail in CA