Only save geometry when close event is accepted.