refs #1337: fix exit