diff --git a/main/translate.c b/main/translate.c
index f0a7f72c3f3f5b1fc0cdb702508e12ec57a757c3..4ffe27c336c731c7bd8b3ee5fe704b4c355dd2bb 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -1298,7 +1298,7 @@ int ast_unregister_translator(struct ast_translator *t)
 	}
 	AST_RWLIST_TRAVERSE_SAFE_END;
 
-	if (found) {
+	if (found && !ast_shutting_down()) {
 		matrix_rebuild(0);
 	}