Allowing for shocks in portfolio mortality models