Closed the Scanner.