Confirm closing only if loaded.