joomla/joomla-cms — pull request #5226 by demis-palma (2014-11-27 17:17:05+00:00)
Title: Removed unreachable code

exit() terminates execution of the script.
Shutdown functions and object destructors will always be executed, but there is no chance to execute $app->close(0);