Fixes bug encountered when ESLEnable is 0. I was trying to disconnect() from a non-existent connection in such cases.