Close internal input stream