Prediction and reduction of injuries due to window failure