NXP-10258: Clean up the localstorage when the user leaves the page on purpose