Ruin, time change and operational risk