#1 Error handling for external commands