Free the strinf and close the plugin handle in main program