Removed close function from the configReader
Added checks for symbolic links and sockets