Fix close of response