I doubt it's really the end for her. Seems more like a setup for her to operate as a spy again, as opposed to being on Earth's most visible superhero team. Look for her to not announce her return and be presumed dead for the foreseeable future, then probably have some kind of unexpected run-in with Clint down the line which leads him to investigate.
But really, who knows? It's anyone's guess!