Wait for message dialog to appear before System.exit() call: SOAP-2704