avail: fix killing backend too early