assistant: Detect when repository has been deleted or moved, and automatically shut down the assistant. Closes: #761261