This makes us more independent from emscripten libraries, giving us more control on the application lifecycle.