Call the HLS dispose() method before reinstantiating

The dispose() method should be called before nullifying the instance of HLS class otherwise the garbage collector will fail to cleanup memory which can cause potential memory leak.