shouldn't we add another hook, before shutdown, in AkkaSpec, for this purpose?