Crash threejs on mobile. How to remove context programmatically?

Can you please try it with the following approach: