close the body passed by rack in case it is ab open file handle