Obviously you just put the nuclear material inside of the in-flight data recorder so it will survive a rocket failure.
If you're being serious, Cassini had those kinds of questions with its launch about its RTG but that didn't have enough nuclear material for it to be a problem.
If we were to try and use a fusion reaction in space, we'd probably use the existing one.