BUGFIX: Allow stubbing of exit