Properly return exit status to command line.