NP-184 Fixed crash on disconnect.