Add support for exiting with status codes.