do not keep inRStream open when source has finished