fixed issue #47
JCTMessageDialog throws exception when called from non-ui thread