Closing open input streams (closes #50)