Don't do it at exit to avoid duplicate