make sure we finish a multipart stream