removing thread-pool and adding sleep before reconnect