Close file stream on when file response completed