in reply to Control::CLI and Additional Prompt At Login

According to the documentation of Control::CLI, $cli->connect(...) returns an error code and $cli->errormsg() an error message. Did you check those?