*Kind of a grand way to go, actually. You'd have to feel pretty special about it. That's assuming you had some way to know a gamma ray burst was coming, which, apparently, you don't. It would come utterly without expectation and our planet would be toast in two seconds.
http://www.bbc.com/future/story/20150331-nasas-cosmic-death-ray-spy