dont attempt to close body if we havent got an output path to compare to body path