MediaWiki contains a few calls to "exit" after generating pages that otherwise
would be cleanly generated. Beginning with PHP5, this is no longer necessary as
an error-handling mechanism.
The attached patch replaces all such exit calls with exception 'throw' and adds
a try/catch framework to index.php
This has the beneficial side effect of making MW far more easily customized via
minor adjustments to index.php