Initialize some pointers to silence warnings.
Only close font object if it succeddfully initialized.