adding method to close individual device