Correctly test for server shotdown in polyglot tests
Fix defects from review 524