Clean up chunk error handling