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

- solves repetitive authentication attempts during reload command when incorrect credentials are given
Merge pull request #369 from TomasHofman/master

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