Do not close service after each read.
Avoid duplication.
Close service if failure during setID.
Merge pull request #1175 from jburel/close-service

Do not close service after each read.