return final application status as exit status code