Make sure we exit cleanly from our function, rather than from our login shell