halcmd: be more patient when connecting to rtapi_app

detail the error message.