Added the query option when releasing hosts.