minor fixes

WRT https://issues.jboss.org/browse/WFLY-2174 since i couldn't reproduce the issue locally it's unclear what is causing this, so i added check if the server is started before talking to the actual server and we need to see whether that improves the situation.