Risk management under extreme events