def METHOD_NAME(self, activity, session):
    """
    This method is called when the activity is closed.
    :return: A rendered template of the closed activity
    """
    raise PermissionDenied("Cette activité est fermé.")