Added close() clause to scanner and removed legacy comment.