After Angelo thinks he has attained the object of his desire, he covers his tracks by ordering the execution of Claudio after all.
After Angelo thinks he has accomplished what he wanted, he tries to erase any traces of his actions by ordering the death of Claudio.