Handle external command execution result correctly
Handle return code of command execution correctly