Provide a shell command executor with better error handling