InputStream and File should be closed (Fix #266)

When InputStream or File was given as a :body then it was consumed but
never closed causing "Too many open files" errors.
Is this necessary to set the right type hints for `FileInputStream`? It seems a bit extraneous otherwise.