Close multipart message only after data have been parsed