fixed: problem with close a response (by the custom flushing)