Make sure +=, -=, *= and /= behave like they did before.

Refs #5846
Implement the exit() script function.

Refs #5846