pub fn exit(framework: &mut Framework) -> Result<(), Box<dyn Error>>
function to run when the app ends