It was just the end that he dreamt. Throwback to season six's "The Other Guys".
Anyway, this was another of the better episodes that they had. Felger is a Jimmy Neutron who can't seem to redeem himself after he makes mistakes. Especially since now his job demands that he does not make mistakes since it would effect the galaxy. Liked that weapon he designed though. Would've liked to have seen it work besides that little ball of light. And I disagree. I think it would've been more of a phaser then photon torpedo.