Optimal reinsurance under endogenous default and background risk | Synapse