Fixes invalid write to already destroyed promise in BEH_API_BootstrapTimeout