Make bot a context manager to ensure plugins get released on exit