exit with an error code.