fix(console) addListeners disconnect: check prompt state before abort