Sol orbits the galaxy independently of all other bodies. We don't know where most of the magnetars are, never mind their orbits, which are anyway unpredictable. (The nearest we know of is ~5kly? away. Or more, or less.) We don't know where any but two of the black holes are, although there must be a billion or more. Less than ten million years ago we flew into a dust cloud left over from a recent supernova.
We could have been in sterilization range of a magnetar dozens or hundreds of times since life evolved, so we're just lucky none erupted when we were. The core supermassive black hole blew somehow just 100Mya, fortunately pointed somewhere else.
The only safe-ish corner is very far from everything else, and off-axis from the central black hole. We are deep in the thick soup.
—ncmncm, HackerNews (link)