Code cleanup
Fixed an issue where reconnect could run more than once at the same time.
Added a Wait Cursor while reconnecting.