close client/server explicitly in test