Add scanner.close() calls to close out #232