close inputstream