update fn exit-on-open