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.
Merge pull request #204 from fixedmachine/patch-1

Call the HLS dispose() method before reinstantiating