remove global file descriptor management and open/close the file in
needed methods (proceed and diff_to_file), so no more need to release