When trying to parse an invalid xml file, the command throws an exception. This should be improved. The exception should be catched. And a warning should be send to the console output.