def exit(exit_code=0):
    """
    Exits the Application.

    :param exit_code: Exit code.
    :type exit_code: int
    """

    for line in SESSION_FOOTER_TEXT:
        LOGGER.info(line)

    foundations.verbose.remove_logging_handler(RuntimeGlobals.logging_console_handler)

    RuntimeGlobals.application.exit(exit_code)
Exits the Application.

    :param exit_code: Exit code.
    :type exit_code: int