Banks and insurance companies protect themselves against systemic risks