IDEX-1404: close all opened files after git checkout