This method shares a lot of code with connection_successful, could it work with a boolean flag?  Is _connection_successful used elsewhere?