Varanus Server listen and wait logic.