Fixes #2910: Added `Application::end()`