cleans up all internal openframes fortran/c interface variables must be called when done using openframes afterwards, the only way to continue using openframes is to first make another call to of_initialize
Warning
DO NOT call of_getreturnedvalue after calling of_cleanup.
This function sets the pointer for _objs to NULL,
which would be dereferenced by of_cleanup.