close the file handle after checking if the config file exists, add a comment