sort out issues at server.stop() when it is a live server replicating