ENH: add close method and context manager support to IO
TST: close open files

Fix 7 test errors on Windows of the following type: `PermissionError: [WinError 32] The process cannot access the file because it is being used by another process`
Merge pull request #69 from cgohlke/patch-1

Close open files in IO instances