add error handler in plutil command execution