close server fix