close input streams