WFLY-3505 Check if service is up before using, to work around problem.
Merge pull request #51 from doctau/WFLY-3505

WFLY-3505 Check if service is up before using, to work around problem.