fix false test for service closefile