Added support for return codes from CLI applications