test: ensure restarted backend closed