Prevent segfault when initialization error occurs from spawning window or GL context.