Swing animation and connection timeout