Changed Validator Path to a relative path:
String validatorPath = "Validator"+File.separator+"cloud.xsd";

Removed delay from logout.