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);
Merge pull request #5226 from demis-palma/patch-6

Removed unreachable code