Properly unload html5 engine