check for load_file before closing, eliminating possible NULL ptr deref
check for load_file before closing, eliminating possible NULL ptr deref

Signed-off-by: Michael Leibowitz <297fd8c6dc8b49d20ea55c9cf28ef1e775abd351@intel.com>

sofar/buxton,sofar/buxton