small bug fix in elfbin for closing the file