Cleanup rogue end