graceful close server test