Preventing a software crash is easier said than done.