force file close, do not crash on missing cabal