Use Exited proc for changing lastarea.