The session service has a timer thread which should be shutdown when the embedded server is shutdown.