end thread. Refs #679