Move the creation of the targetLocator below the tests for started etc.
(Otherwise the locator would be left open)
https://bugzilla.redhat.com/show_bug.cgi?id=899989 Cluster user/password fail authentication.
Merge pull request #1255 from clebertsuconic/2.3.x

back porting https://bugzilla.redhat.com/show_bug.cgi?id=899989