Ensure secondary windows are released when closed by user.