Update ServerRouter.scala

Added termination code