Fix segfault at exit caused by non grabbed font