fixes #148: close body to prevent too many files