Condense definition and setting of exit_status
Condense definition and setting of exit_status

As per request of Tyler

tdenniston/bish,tdenniston/bish,lw7360/bish,lw7360/bish,AICIDNN/bish,AOSC-Dev/bish,AOSC-Dev/bish,AICIDNN/bish