Added close() to inputstream.