Return the off-topic topic essays and require the students to rewrite on the correct topic.
Accept the off-topic topic essays for full credit.
Accept the off-topic topic essays but warn the students that they will lose points for being off-topic, and offer a rewrite option.