Hang after restarting an interrupted call to connect()?