closing input streams