Fixed bug of unclosed URL stream.