create `teardown` method to call `server.close`