Fixed error where on removing applications, nodes would not reconnect