Minor change to terminate AvroSource properly