Clean up ready count on error