Record unstable tasks exiting using a new UNSTABLE_EXIT event.