reset connection every 1000 devices