better error handling for SMBShell commands