What is the general rule about recovery of money or property transferred under an illegal contract? What are the exceptions?