make sure query shortlink closes