get http.server working with closure crash