Added wfAbruptExit() function, to replace exit() calls with.