fix for cache showing server working iven when its shutdown

Before this the cache would print last message which was SYNC OK if i stopped the mysql server while running a loop of requests to the clustercheck daemon.