GenServer fail safe queue

You can use immortal. Or add a stash server that will store state on terminate function of dying GenServer,