ay 😃
that's a very very bad coding style if you work that way. you'll never get happy with that.
you NEVER should use exit() or die() in included files!
rather make functions or objects inside your include files, which you call in the original file and return TRUE or FALSE or any other variables you want, and depending on that you decide in the original file if the script will die ...
i don't think there will be a way of avoiding your problem with any other function.