The reason this crashes is because the app doesn't know what to do when the RAM was wiped and can't find the function. So it panicked and crashes.