core: ensure module calls are avoided after abort.