expose waitgroup.Wait so shutdown handlers can wait on the server