Learn more about cloning repositories
You have read-only access
Added a check for closing an unopened file which only seemds to be an issue on Windows, under MSVC.