Moved file closing to serviceMutate().