async def shutdown_dispatcher(app: Application):
    "\n    Attempt to close the app's `Dispatcher` object.\n\n    :param app: The application object\n    "
    logger.info('Stopping dispatcher')
    try:
        (await app['dispatcher'].close())
    except KeyError:
        pass
Attempt to close the app's `Dispatcher` object.

:param app: The application object
async def shutdown_dispatcher(app: Application):
    "\n    Attempt to close the app's `Dispatcher` object.\n\n    :param app: The application object\n    "
    logger.info('Stopping dispatcher')
    try:
        (await app['dispatcher'].close())
    except KeyError:
        pass