ensure server is stopped before moving on to next op