Fix unsuccessful command prompt status