Open-system behavior during chondrule formation