Catch and log COM exceptions when command execution fails, rather than crashing.