firmware loader: fix use-after-free by double abort