Render customClass if it defined

Also, keep context and rule objects accessible inside error.