Separate exit from shutdown, and update core.