use scriptExecutor.close();