Don't try to connect if the connection is open.