More work on exits that call a function.