fix analyse callback so it gets executed when the command fails