Loop until save dialogue appears. What a hack!