Changed AttemptConnectController to handle being shutdown unexpectedly.