Default constructor for ServiceRouter added.
Changed closing logic.