more input-stream cleanup - maybe avoid further Bad FileDescriptor Errors