Fix a rare timing-sensitive crash when closing a window during a connection attempt (part of #2924)
Fix a rare timing-sensitive crash when closing a window during a connection attempt (part of #2924)

Jellyfrog/sequelpro,Jellyfrog/sequelpro,Jellyfrog/sequelpro,Jellyfrog/sequelpro