explicitly close IO instance after read

this should reduce "file descriptor usage" of the
exec input plugin
Merge pull request #1083 from cmertz/master

explicitly close IO instance after read