Restore flash page before exiting debugger