fix a minor bug in exception catch in connect(); make connect does not happen every time downloading a package