Luton Town midfielder Arnaud Mendy feels players must be prepared to leave the field if they suffer racist abuse.