Transient chaos in a closed chemical system