let the run() function provide the return code for exiting