Don't set pydevd.connected=True, if the connection can't be established (based on https://github.com/akruis/Pydev/commit/8cbef0400dff8b2a133713e7528581a019fe7e82).