Prevent repeated connections after failed connection.