[WFCORE-438] The CLI freezes in phase of requesting username/password

- solves repetitive authentication attempts during reload command when incorrect credentials are given