Improving webgl error support