Fix random connection refused in test. Use a fixed port and await server exit before exiting tear down.