Stop the repo and odb on UP terminate