Added timeout code for ready response.  Not tested.
Fixed error message.  Cancel button also added during connecting.