deleting shaders on error