Fixed HTTP request closing timing