Check fopen return value for ao2 reference debug output.