Bhishma and Drona’s weapons were invoked by mantra. With their deaths, the knowledge of those mantras died too. When the Pandavas retired to the woods for the final time, the Agni asked for his Gandvi back and it was returned to the heavens. Shri Krushna’s weapons returned to Vaikuntha with him.