make sure we close the body even if exception occurs (closes #153)