Returning backup licenses from offline agents