BlackBerry serves as a cautionary tale for companies without sound risk management strategies.