shell: Don't keep callbacks and config around