Close the Scanner

add scanner.close() in testExport().