mock_server: move to cleaner exit model