changed ReviveConnections and testing in restartServer